object ScalaVarDemo01 {
def main(array: Array[String]): Unit = {
  var a: Int = 10
  var b: Int = 20
  b = 30;
  println("a=" +a)
  println("b="+b)

  var age:Int = 10
  var sal:Double =11.2
  var name:String = "tom"
  var isPass: Boolean = true

  //在Scala中，小数点默认为Double,整数默认为Int
  var score : Float = 99.99F
  println(s"$name 今年 $age 岁了 , 薪资为$sal 绩效为$score , 是否涨工资$isPass")
}
}
